const sequelize = require("../dbConnect");
const { DataTypes } = require("sequelize");

const BlogType = sequelize.define("comment", {
    nickname: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    content: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    avatar: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    createDate: {
        type: DataTypes.BIGINT,
        allowNull: false,
    },
}, {
    freezeTableName: true,
    createdAt: false,
    updatedAt: false
});

module.exports = BlogType;